package com.animee.app4.slice;

import com.animee.app4.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.webengine.WebView;

public class NewsInfoAbilitySlice extends AbilitySlice {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_info);

        String url = intent.getStringParam("url");

        WebView webView = findComponentById(ResourceTable.Id_info_web);

        webView.getWebConfig().setJavaScriptPermit(true);

        webView.load(url);
    }


}
